package com.itshops.service;

import com.itshops.entity.Cart;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface CartService {
    void createCart(Integer uId, String pId) throws SQLException, InvocationTargetException, IllegalAccessException;

    List<Cart> findAll(Integer uId) throws SQLException, InvocationTargetException, IllegalAccessException;

    void deletecartByCid(String cid) throws SQLException;

    void updateCartByCid(String cid, String price, String cnum) throws SQLException;

    void clearCart(String uid) throws SQLException;
}
